<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/common1.css">
    <link rel="stylesheet" href="./detail.css">
    <link href="../../js/plugins/layer1/skin/layer.css" rel="stylesheet">
</head>
<body>
    <div ms-controller="container">
        <div class="basic">
            <div class="content-title tit bg-1 paddingLeft20">基础信息</div>
            <div class="basic-wrap clearfix">
                <div class="left">
                    <table class="tables">
                        <tr>
                            <th>站点</th>
                            <td>{{params.orderSub.siteName}}</td>
                        </tr>
                        <tr>
                            <th>供应商</th>
                            <td>{{params.orderSub.supplierName}}</td>
                        </tr>
                        <tr>
                            <th>订单号</th>
                            <td>{{params.orderSub.code}}</td>
                        </tr>
                        <tr>
                            <th>订单状态</th>
                            <td>{{params.orderSub.statusOrder}}</td>
                        </tr>
                        <tr>
                            <th>买家账号</th>
                            <td>{{params.orderSub.buyerUserName}}</td>
                        </tr>
                    </table>
                </div>
                <div class="right">
                    <table class="tables">
                        <tr>
                            <th>交易流水号</th>
                            <td>{{params.orderMain.batch}}</td>
                        </tr>
                        <tr>
                            <th>下单时间</th>
                            <td>{{params.orderSub.orderTime | date("yyyy-MM-dd HH:mm:ss")}}</td>
                        </tr>
                        <tr>
                            <th>支付时间</th>
                            <td>{{params.orderMain.payTime | date("yyyy-MM-dd HH:mm:ss")}}</td>
                        </tr>
                        <tr>
                            <th>支付方式</th>
                            <td>{{params.orderMain.payMethodName}}</td>
                        </tr>
                        <tr>
                            <th>订单金额</th>
                            <td>{{params.orderSub.amountTotalSub}} 元</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div><!--/基础信息-->

        <div class="basic">
            <div class="content-title tit bg-1 paddingLeft20">配送信息</div>
            <div class="basic-wrap clearfix">
                <table class="tables">
                    <tr>
                        <th>联系人</th>
                        <td>{{params.orderSub.contacts}}</td>
                    </tr>
                    <tr>
                        <th>联系电话</th>
                        <td>{{params.orderSub.phone}}</td>
                    </tr>
                    <tr>
                        <th>配送地址</th>
                        <td>{{params.orderSub.addressName}}</td>
                    </tr>
                </table>
            </div>
        </div><!--/配送信息-->

        <div class="basic">
            <div class="content-title tit bg-1 paddingLeft20">订单商品</div>
            <div class="basic-wrap clearfix">
                <table class="full-table">
                    <tr>
                        <th>序号</th>
                        <th>商品ID</th>
                        <th>商品名称</th>
                        <th>商品条码</th>
                        <th>箱规</th>
                        <th>件装价格单位：元</th>
                        <th>商品数量</th>
                        <th>小计单位：元</th>
                    </tr>
                    <tr ms-for="(index,item) in @params.orderWares">
                        <td>{{index + 1}}</td>
                        <td>{{item.wareId}}</td>
                        <td>{{item.wareName}}</td>
                        <td>{{item.barcode}}</td>
                        <td>{{item.numberPerBox}}</td>
                        <td>{{item.pricePiece}}</td>
                        <td>{{item.number}}</td>
                        <td>{{item.amountTotal}}</td>
                    </tr>
                </table>
            </div>
        </div><!--/订单商品-->

        <div class="basic" :if="params.orderMain.invoiceType != null">
            <div class="content-title tit bg-1 paddingLeft20">发票信息</div>
            <div class="basic-wrap clearfix">
                <table class="full-table">
                    <thead>
                        <tr>
                            <td>开票类型:{{invoiceTypeName}}</td>
                            <td>发票抬头:{{params.orderMain.invoiceTitle}}</td>
                            <td colspan="3">发票内容:{{params.orderMain.invoiceContent}}</td>
                        </tr>
                    </thead>
                    <tbody :if="params.orderMain.invoiceType == 1">
                        <tr>
                            <th>纳税人识别码</th>
                            <th>注册地址</th>
                            <th>注册电话</th>
                            <th>开户银行</th>
                            <th>银行账户</th>

                        </tr>
                        <tr>
                            <td>{{params.orderMain.taxpayerCode}}</td>
                            <td>{{params.orderMain.regAddress}}</td>
                            <td>{{params.orderMain.regPhone}}</td>
                            <td>{{params.orderMain.bank}}</td>
                            <td>{{params.orderMain.bankAccount}}</td>

                        </tr>
                    </tbody>
                </table>
            </div>
        </div><!--/发票信息-->

        <div class="basic">
            <div class="content-title tit bg-1 paddingLeft20">买家备注</div>
            <div class="basic-wrap clearfix">
                <table class="tables">
                    <tr>
                        <th>买家备注</th>
                        <td><textarea :html="params.orderMain.description"></textarea></td>
                    </tr>
                </table>
            </div>
        </div><!--/买家备注-->
    </div>
    <script data-main="detail" src="../../javascript/require.js" ></script>
</body>
</html>